"%f" is the (or at least one) correct format for a double. There is no format for a float , because if you attempt to pass a float to printf ... ... <看更多>
Search
Search
"%f" is the (or at least one) correct format for a double. There is no format for a float , because if you attempt to pass a float to printf ... ... <看更多>
//hello.c #include <stdint.h> #include <stdio.h> volatile double value = 1.0f; volatile char *cmd = "%6.1f \n"; int main() { printf (cmd, ... ... <看更多>